#ifndef __CONFIG__
#define __CONFIG__

typedef struct config_s {
    char *key;
    char *value;
} config_t;

int read_conf(const char *path, config_t *configs, int *n);

int get_conf_value(const config_t *configs, const int n, const char *key, char *value);

int free_configs(config_t* configs, int n);

#endif
